<?php
include "otamu_config.php";

$act = $_REQUEST['act'];

if ( ($_SESSION['current_role'] == '') && ($act!='change_role') )
	$act = 'select_role';

switch ($act) {

	case "select_role":
		header ("Location: index.php?act=select_role");
		break;

	case "change_role":
		//session_unregister(current_role);
		//session_register(current_role);
		$_SESSION['current_role'] = $_REQUEST['the_role'];
		header ("Location: index.php");
		//exit;
		break;


	default :
		header ("Location: index.php");
}

?>
